{include file="common/_meta" /}
<title></title>
</head>
<body class="pos-r">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 交易管理 <span class="c-gray en">&gt;</span> 代理充值记录 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="page-container">
		<form class="Huiform" method="get" action="" >
		<div class="text-c"> 
			日期范围：
			<input type="text" class="input-text Wdate" name="start" id="countTimestart" onfocus="selecttime(1)" value="{$Request.get.start|default=''}" size="17" class="date" readonly style="width:140px;"> 
			- 
			<input type="text" class="input-text Wdate" name="end" id="countTimeend" onfocus="selecttime(2)" value="{$Request.get.end|default=''}" size="17"  class="date" readonly style="width:140px;">
			<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
		</div>
		</form>
		<div class="cl pd-5 bg-1 bk-gray mt-20"><span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
		<div class="mt-20">
			<table class="table table-border table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">
						<th ><input name="" type="checkbox" value=""></th>
						<th >ID</th>
						<th>充值时间</th>
						<th>代理信息</th>
						<th>玩家信息</th>
						<th>充值金额</th>
						<!-- <th>状态</th>
						<th>操作</th> -->
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr class="text-c va-m">
						<td><input name="" type="checkbox" value=""></td>
						<td>{$i}</td>
						<td>{$vo.create_time}</td>
						<td>{$vo.agent.name}<br/>{$vo.agent.tel}</td>
						<td>{$vo.user.name}<br/>{$vo.user.tel}</td>
						<td>{$vo.trade_num}</td>
				<!-- 		<td class="td-status"></td>
						<td class="td-manage"></td> -->
					</tr>
					{/volist}
				</tbody>
			</table>
			<div class="pages" style="margin:20px;float: right; ">{$list->render()}</div>
		</div>
	</div>
</div>
{include file="common/_footer" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript">
$('select[name="status"]').val('{$Request.get.status}');
function selecttime(flag){
    if(flag==1){
        var endTime = $("#countTimeend").val();
        if(endTime != ""){
            WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:endTime})}else{
            WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})}
    }else{
        var startTime = $("#countTimestart").val();
        if(startTime != ""){
            WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:startTime})}else{
            WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})}
    }
 }
function opt(obj,title,id,type){
	layer.confirm('确认'+title,function(index){
		$.post("{:url('Deal/shopCashOut')}",{id:id,type:type}).success(function(data){
			layer.msg(data.msg,{icon: 6,time:1000});
			if(data.code){
				setTimeout(function(){
					history.go(0);
				},500);
			}
		});
	});
}


// 驳回申请
function cancle(obj, id, type){
	layer.prompt({
		  formType: 2,
		  title: '驳回申请，填写理由'
		},
	function(val, index){
		var note = val;

		$.post("{:url('Deal/shopCashOut')}",{id:id,type:type,note:note}).success(function(data){
			layer.msg(data.msg,{icon: 6,time:1000});
			if(data.code){
				setTimeout(function(){
					history.go(0);
				},500);
			}
		});
	});
}


</script>
</body>
</html>